Repository navigation
fix: keep cache trimming in its own folder and tighten agent approvals - #19
Merged
Merged
Conversation
A chosen cache folder now holds the cache in a Formencoder Cache subfolder, so trimming and cleaning remove only cache files and never other files that live in the chosen folder.
The HTTP and MCP routes now map every name the app keeps for itself (ui, engine, desktop) to the ordinary caller name, so preferences that only the window may change stay with the window.
family.add, family.addLink and family.linkFormcut, over HTTP and as the family tool, now count their settings, outputs and preset toward the publish approval, and a preset named by a command counts its own publish destinations, as settings given inline already did.
The folder destination numbers a copy whose name is already taken, as outputs do while incrementNames is on, refuses an empty path instead of copying into the working folder, and asks before an agent adds one.
queue.save writes a file, so it is no longer marked as a query: an outside agent is asked once like any other change, and saving over an existing .fequeue waits for approval as replacing an output does.
formwav and formvis keep no engine record, so a headless start now gives them a free port and looks for them there, and an engine that never answers is stopped instead of left running.
A preset file imported by an agent now counts its publish destinations toward the approval, so importing and using it in one batch still asks. Folder and file names shown in an approval are kept to one line, and a folder destination numbers a copy when a link of the same name is there instead of writing through it.
A family app started headless is looked for at its own port only while the process is still running, and an engine that exits during start no longer leaves its address behind.
The shared agent finder (1.0.2) follows an npm style .cmd shim to the exe or node script it wraps and runs that with an argv list. Any other .cmd or .bat still goes through cmd.exe /d /c, but only when every word is free of & | < > ^ ( ) ! % " and control characters; otherwise the start is refused with a plain message that points to standard input or a file. Agent tabs answer the refusal as 422 and the Claude Code setup reports it instead of failing.
- preset.resolve (a query) returns the settings preset.create (including fromOutput), preset.update, preset.duplicate, preset.alias and preset.import would leave, reading an import file the way the import itself does; the approval check uses it for those commands. - A preset or preset file that cannot be read or parsed now needs the person's approval instead of being skipped. - queue.save refuses an existing file unless overwrite is true; the approval check asks when overwrite is set, and the save dialog in the window passes it. - family.linkFormcut stores the resolved preset id and refuses unknown presets; the formcut webhook re-checks publishing for the linked preset and leaves the queueing to the person's approval when needed.
- preset.resolve is now an internal engine command: it is no longer listed, described, put in a menu or offered as an MCP tool, and the engine runs it only for the engine service itself; every other caller, in a single call or a batch, is refused. - It answers with a publish summary only (whether the preset publishes, the kinds of destination, and whether a local file is deleted), never the settings themselves; a file that is not a preset gets a generic error that does not repeat its path or contents. - The approval check builds its reasons from that summary. - agents sync regenerated agents/manifest.json and the harness command reference without preset_resolve. - Rust and Python tests cover the refusal, the summary and the listing.
- family.resolved and publish.result move to the internal command list: only the engine service, which hands back family media and publish results, can run them; every other caller, in a single call or a batch, is refused. - They are no longer listed, described, put in a menu or offered as MCP tools; agents sync regenerated agents/manifest.json and the harness command reference, and the window menu no longer needs to hide them. - Rust and Python tests cover the refusal and the absence for all three internal commands.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tests
For the owner
How to ship